<?php
$info = getOption(array('google_map_key', 'google_recaptcha_public_key'));
$aMap = array('key'=> $info->google_map_key->opt_val,'q'=>$user_info->getAddress(), 'language'=>'vi');
?>
<div class="row">
	<div class="col-md-12 col-xs-12">
		<h3 class="text-uppercase section-title clear-bdr"><?php echo $pageTitle; ?></h3>
	</div>

	<div class="col-md-12 col-xs-12 col-sm-12">
		<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/embed/v1/place?<?php echo http_build_query($aMap,'', '&'); ?>"></iframe>
	</div>

	<div class="col-md-6 col-xs-12 mgt-10">
		<div id="flg_message" class="alert fade in hidden">
            <button type="button" class="close">×</button>
            <h4 class="message-title"></h4>
            <div class="message-text"></div>
        </div>
        <form id="main-contact-form" class="contact-form row" name="contact-form" method="post" action="<?php echo page_url(CONTACT_SLUG.'/gui'); ?>">
			<div class="form-group col-md-6">
				<input type="text" class="form-control" required="required" placeholder="Họ tên" name="contact[name]" id="name" maxlength="100"/>
			</div>
			<div class="form-group col-md-6">
				<input type="email" class="form-control" required="required" placeholder="Email" name="contact[email]" id="email" maxlength="250"/>
			</div>
			<div class="form-group col-md-12">
				<input type="text" class="form-control" required="required" placeholder="Tiêu đề" name="contact[subject]" id="subject" maxlength="160"/>
			</div>
			<div class="form-group col-md-12">
				<textarea class="form-control" id="message" required="required" rows="8" placeholder="Nội dung yêu cầu" name="contact[message]" maxlength="10000"></textarea>
			</div>
            <div class="form-group col-md-12">
                <div id="recaptcha" class="g-recaptcha pull-left" data-callback="enable_contact_submit_button" data-btnsubmit=".btn-send-contact" data-sitekey="<?php echo $info->google_recaptcha_public_key->opt_val ?>"></div>
                <button type="button" disabled="disabled" class="pull-right btn btn-info btn-fill btn-send-contact"><i class="glyphicon glyphicon-envelope"></i> Gửi</button>
            </div>
            <div class="clearfix"></div>
		</form>
	</div>
	<div class="col-md-6 col-xs-12 mgt-10">
		<h2 class="clear-mgr">Thông tin gian hàng</h2>
		<h4 class="text-uppercase mgt-15"><?php echo $user_info->shop_title; ?></h4>
		<p><?php echo $user_info->getAddress(); ?></p>
		<p>Phone : <?php echo $user_info->getPhone(); ?></p>
		<p>Email : <span><?php echo $user_info->getEmail(); ?></span></p>
	</div>
</div>